/**
 * 
 */
package sdc.msg;

import java.io.Serializable;
import java.util.Comparator;


/**
 * @author yokoe
 *
 */
public final class OptionGreater implements Comparator<Message> ,Serializable{
	
	public static final OptionGreater INSTANCE = new OptionGreater();
	
	private static final long serialVersionUID = -5045977974194630723L;

	private OptionGreater(){}

	@Override
	public int compare(Message m1, Message m2) {
		
		return (int)(m2.getOption() - m1.getOption());
	}
}
